package RPPM.service.Impl;

import RPPM.dao.TeaDao;
import RPPM.dao.impl.TeaDaoImpl;
import RPPM.domain.Teacher;
import RPPM.service.TeaService;

import java.util.List;
import java.util.Map;

public class TeaServiceImpl implements TeaService {
    TeaDao teaDao = new TeaDaoImpl();
    @Override
    public Teacher findTeacherById(Teacher tobeckecked) {
        return teaDao.findTeacherById(tobeckecked);
    }

    @Override
    public List<Map<String, Object>> findCourseByTeaid(Teacher teacher) {
        return teaDao.findCourseByTeaid(teacher);
    }

    @Override
    public List<Map<String, Object>> findCoursesByname(int tea_id, String searchText) {
        return teaDao.findCoursesByname(tea_id, searchText);
    }
}
